import { createRequest } from '/@/api/service';
const module = 'ib/visitor/v1/VisitorAppointmentRecordApi/';

/**
 * @function 查看访客登记详情-仅限访客
 * @param data
 * @param header
 * @returns {Promise}
 */
function APPOINTMENT_STATISTICS(
  data: VisitorAppointmentRecordApi.AppointmentStatisticsReq,
  header: object = {},
): Promise<VisitorAppointmentRecordApi.AppointmentStatisticsResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}appointmentStatistics`,
    data,
    header,
    'POST',
  );
}

export { APPOINTMENT_STATISTICS };
